package com.yyq.gxdc.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.github.pagehelper.PageInfo;
import com.yyq.gxdc.entity.DiningTable;
import com.yyq.gxdc.entity.Dish;
import com.yyq.gxdc.entity.ReceivingAddress;

import java.util.List;

public interface IDiningTableService {
    /**
     * 分页查询
     * @param dish 查询条件
     * @return
     */
    public PageInfo<DiningTable> findPage(DiningTable dish, int pageNum, int pageSize);

    public IPage<DiningTable> getAllDiningTable(Page<DiningTable> page, DiningTable dish);


    List<DiningTable> getUnUseTable(Integer tableType);

    /**
     * 添加
     * @param route
     * @return
     */
    public int add(DiningTable route);

    /**
     * 根据ID查询用户
     * @param id
     * @return
     */
    public DiningTable findById(Integer id);
    /**
     * 修改
     * @param diningTable
     * @return
     */
    public int update(DiningTable diningTable);
    /**
     * 删除
     * @param id
     * @return
     */
    public int delete(Integer id);

    /**
     * 详情
     * @param rid
     * @return
     */
    public DiningTable getDetailByRid(Integer rid);

}
